package ca.newcommerce.youtube.events
{
    import ca.newcommerce.youtube.feeds.*;
    import flash.events.*;

    public class YouTubeEvent extends Event
    {
        protected var _requestWrapper:Object;
        protected var _videoFeed:VideoFeed;
        protected var _requestId:Number = -1;
        public static const PROFILE_DATA_RECEIVED:String = "profile_data_received";
        public static const VIDEO_FEED_READY:String = "videofeed_ready";
        public static const STANDARD_VIDEO_DATA_RECEIVED:String = "standard_video_data_received";
        public static const VIDEO_DATA_RECEIVED:String = "video_data_received";
        public static const RAW_URL_DATA_RECEIVED:String = "raw_url_data_received";
        public static const RESPONSE_DATA_RECEIVED:String = "response_data_received";

        public function YouTubeEvent(param1:String, param2:Object, param3:VideoFeed)
        {
            super(param1);
            this._requestId = param2.id;
            this._requestWrapper = param2;
            return;
        }// end function

        public function get requestId() : Number
        {
            return this._requestId;
        }// end function

        public function get requestWrapper() : Object
        {
            return this._requestWrapper;
        }// end function

    }
}
